#pragma once

#include "../Position.h"
#include "CADCommand.h"

// CFillCmd command target

class CFillCmd : public CCADCommand
{
	DECLARE_DYNAMIC(CFillCmd)
public:
	CFillCmd(CCADImage *pImage, COLORREF fillColor = RGB(0,0,0));
	virtual ~CFillCmd();

	inline void SetFillColor(COLORREF fillColor) { m_fillColor = fillColor; }
	int GetType();
	int	OnLButtonDown(CDC* pDC, UINT nFlags, const CPosition& pos);
	int	OnMouseMove(CDC* pDC, UINT nFlags, const CPosition& pos);
	int	OnRButtonDown(CDC* pDC, UINT nFlags, const CPosition& pos);

	int	Cancel(CDC* pDC);

private:
	CCADImage *m_pImage;
	COLORREF m_fillColor;
};


